<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

define('PROJECT_ADMIN_NAME', '模板系统');

//public
define('LIST_DEFAULT_START', 0);
define('LIST_DEFAULT_LIMIT', 20);
define('SQL_EXECUTE_RETAIN_CONDITION', false);
//define('PERMISSION_DISABLE', true);

// define('PERMISSION_DISABLE', ENVIRONMENT != 'production');
define('PERMISSION_DISABLE', true);

//admin
define('SALT', '3f372a845cb88d5bf8423edbff66809b');
define('DEFAULT_PASSWORD', '123456');
define('NOW',date('Y-m-d H:i:s'));

//URL
define('SITE_BASE_URL', config_item('base_url').'/');
define('RESOURCE_URL', SITE_BASE_URL.'resource/');
define('UPLOAD_URL', SITE_BASE_URL.'uploads/');
define('COMMON_URL', SITE_BASE_URL.'document/common/');
define('CODE_IMAGE_URL', UPLOAD_URL.'code_image/');
define('UPLOAD_URL_FILE', UPLOAD_URL.'f/');

//PATH
define('UPLOAD_PATH', dirname(BASEPATH).'/uploads/');
define('COMMON_PATH', './document/common/');
define('CODE_IMAGE_PATH', UPLOAD_PATH.'code_image/');
define('UPLOAD_PATH_FILE', UPLOAD_URL.'f/');

//status
define('STATUS_ACTIVE', 1);
define('STATUS_DISABLE', 0);
define('STATUS_PENDING', -1);
define('STATUS_DELETE', -2);

define('TEMPLATE_PROJECT', 'mpc');
define('TEMPLATECSS_PATH', dirname(BASEPATH).'/resource/'.TEMPLATE_PROJECT.'/templateCSS/');

//response code
define('RESPONSE_CODE_UNAUTHORIZED', 401);

//project type
define('PROJECT_TYPE_WEB', 1);
define('PROJECT_TYPE_MOBILE', 2);


$g_common_menu = array('app/changeuserpassword','login/logout');
$g_not_need_login_controllers = array('project/dp','project/downloadStaticPackage','project/downloadProjectStyle');
$compression_replace = array(
	"\r","\n","\r\n","\t","    ",
);

$ctrllerArray = array(
	'app',
	'user',
	'canvas',
	'framework',
	'project',
	'template',
	'widget',
	'widget_edit',
);

$common_static_file_list = array(
	'z.js',
	'zepto.min.js',
	'jquery-1.8.3.min.js',
	'parallax.min.js',
	'html5.js',
	'ie.min.css',
	'ie6.min.css',
	'animate.css',
	'jquery.pngFix.js',
	'ExtEditor.js',
);


/* End of file application_config.php */
/* Location: ./application/config/application_config.php */
